package com.moli.iov.his.model.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 已售车辆上线统计
 * </p>
 *
 * @author sy
 * @since 2018-12-10
 */
@Data
public class ReportSelledOnline implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    /**
     * 总车辆数
     */
    private Long totalCount;

    /**
     * 已售车辆上线数
     */
    private Long selledOnlineCount;

    /**
     * 统计时间范围
     */
    @JsonFormat(pattern="MM-dd",timezone = "GMT+8")
    private Date statTime;

    /**
     * 删除标识
     */
    private Integer isDelete;

    /**
     *  已售车辆上线率
     */
    private BigDecimal selledOnlineRate;

    public ReportSelledOnline(Long totalCount, Long selledOnlineCount, BigDecimal selledOnlineRate) {
        this.totalCount = totalCount;
        this.selledOnlineCount = selledOnlineCount;
        this.selledOnlineRate = selledOnlineRate;
    }

    public ReportSelledOnline() {
    }
}
